package cn.schoolwow.quickdao.test.module.business.user.dml.menu.testcase;

import cn.schoolwow.quickdao.test.module.business.user.dml.menu.flow.FirstInsertInsertMenuFlow;
import cn.schoolwow.quickdao.test.module.business.user.dml.menu.flow.InitialMenuFlow;
import cn.schoolwow.quickdao.test.module.business.user.dml.menu.flow.SecondInsertInsertMenuFlow;
import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;

public class InitialMenuTestCaseFlow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        flowContext.startFlow(new InitialMenuFlow())
                .next(new FirstInsertInsertMenuFlow())
                .next(new SecondInsertInsertMenuFlow())
                .execute();
    }

    @Override
    public String name() {
        return "初始化菜单测试用例";
    }
}
